package com.deep.test

import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.mllib.util.MLUtils

/**
 * @author sw
 * @create 2023-06-02 11:16
 */
object Test04 {

  def main(args: Array[String]): Unit = {
    val conf = new SparkConf().setMaster("local").setAppName("ALS")
    val sc = new SparkContext(conf)
    sc.setLogLevel("WARN")

    val examples = MLUtils.loadLibSVMFile(sc, "data/sample_libsvm_data.txt")

    println(examples.collect().head)
  }
}
